package kr.hkit.powerjava.chapter20;

import java.util.*;

public class ArraysEx {
	public static void main(String[] args) {
		ArrayList<Integer> arList = new ArrayList<>();
		for(int i = 1; i<11; i++){
			arList.add(i);
		}
		for(int a : arList){
			System.out.printf("%- 3d",a);
		}
		
		int[] arr = new int[10];
		for (int i = 0; i < 10; i++) {
			arr[i] = i+1;	
			
		}
		
		List<int[]> list = Arrays.asList(arr);
		for (int j = 0; j < arr.length; j++) {
			
		for(int a : arr){
			System.out.printf("%3d", a);
		}
		
		int idx = Arrays.binarySearch(arr, 5);
		System.out.println("숫자 5의 위치는 ? : "+idx);
			
		}
		
		blooea[ ] logg = ntw
	}
}
